﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrgTreeList.aspx.cs" Inherits="Console_System_Orgs_OrgTreeList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript">
       
        function setorgid(orgid) {
            if (orgid != "") {
                document.getElementById("orgId").value = orgid;
                document.getElementById("delhref").href = "Console/System/Orgs/Org.ashx?title=delete&ids=" + orgid;
            }
        }
        function add() {
            var url = "Console/System/Orgs/OrgAdd.aspx?PID=" + document.getElementById("orgId").value;
            $.pdialog.open(url, 'addorg', '添加部门', {width: 520, height: 320});
            return true;
        }
        function edit() {
            var url = "Console/System/Orgs/OrgEdit.aspx?ID=" + document.getElementById("orgId").value;
            $.pdialog.open(url, 'addorg', '修改部门', {width:520,height:320});
        }
    </script>
</head>
<body>
    <form id="pagerForm" method="post" action="Console/System/Orgs/OrgTreeList.aspx">
    <input type="hidden" name="status" value="status" />
    <input type="hidden" name="keywords" value="keywords" />
    <input type="hidden" name="numPerPage" value="<% =NumPerPage %>" />
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="orderField" value="" />
    </form>
    <div class="pageHeader"  style="display:none">
        <form id="searchForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="Console/System/Orgs/OrgTreeList.aspx"
        method="post">
         <input type="hidden" Id="orgId" name="orgId" runat="server" value="1" />
        </form>
    </div>
    <div class="pageContent">
        <div class="panelBar">
            <ul class="toolBar">
                <li><a class="add"    onclick="return add();">
                    <span>添加部门</span> </a></li>
                     <li><a class="edit"    onclick="return edit();">
                    <span>修改部门</span> </a></li>
                <li><a id="delhref" class="delete"  target="ajaxTodo" title="确实要删除选定的部门吗?"><span>删除部门</span> </a></li>
            </ul>
        </div>
        <table class="table" width="100%"  layouth="138">
            <thead>
                <tr>
                    <ul id="orgtree"  runat="server" class="tree treeFolder  expand">
                        <%=GetOrgTreeList("0") %>
                    </ul>
                </tr>
            </thead>
        </table>
        
    </div>
</body>
</html>
